package com.ztsoft.user.service.user;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ztsoft.user.pojo.entity.user.SysRole;
import com.ztsoft.user.pojo.vo.user.SysRoleVo;
import com.ztsoft.user.utils.Result;

public interface SysRoleService extends IService<SysRole> {

    Result<Object> queryRole();

    Result<Object> queryRoleByPage(SysRole role, Integer currentPage, Integer pageSize);

    Result<Object> addRole(SysRoleVo sysRoleVo);

    Result<Object> updateRoleInfo(SysRoleVo sysRoleVo);

    Result<Object> updateRoleAndMenu(SysRoleVo sysRoleVo);

    Result<Object> deleteRole(String id);

    Result<Object> queryAllRoleName();
}